namespace KMS.Core
{
    public static class CriteriaExtensionMethods
    {
        public static Criteria And(this Criteria criteria, Criteria otherCriteria)
        {
            return new OperatorCriteria("AND", criteria, otherCriteria);
        }
        public static Criteria Or(this Criteria criteria, Criteria otherCriteria)
        {
            return new OperatorCriteria("OR", criteria, otherCriteria);
        }
        public static Criteria Not(this Criteria criteria)
        {
            return new NotCriteria(criteria);
        }
    }
}